package com.huahai.controller;

import com.huahai.common.BaseResponse;
import com.huahai.util.ResultUtils;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 健康检查接口
 * @author huahai
 */
@RestController
@RequestMapping("/health")
public class MainController {

    /**
     * 健康检查
     * @return
     */
    @ApiOperation(value = "健康检查")
    @GetMapping
    public BaseResponse<String> healthCheck() {
        return ResultUtils.success("ok");
    }

}
